POV-Ray : Newsgroups : povray.general : Access Violation : Access Violation Server Time
5 Aug 2024 00:19:55 EDT (-0400)
  Access Violation  
From: Florian Brucker
Date: 11 Jan 2003 08:56:04
Message: <3e202274@news.povray.org>
hey guys!

this piece of code keeps on making my pov abort rendering with an access
violation exception. restarting povray and rebooting the whole system did
not change anything.

pov also complains about unused bounding boxes, but i can't find them?

can anybody verify this behaviour?

my system:
athlon 600
256 MB SDRAM
WinME
official POV-Ray 3.5


thanks,
florian

==========================================
background { rgb 1 }

camera {
 location <80,20,-80>
 look_at 0
}



global_settings {
 max_trace_level 256
}

light_source { <1,1,-1>*1000 rgb 1 }

#declare MyFuncX = function (time) {
cos((time+5)/10*2*pi)*10+time*time*time*0.3 }     //X-Coordinates
#declare MyFuncY = function (time) { sin((time+5)/10*4*pi)*10-time*time }
//Y-Coordinates
#declare MyFuncZ = function (time) {
sin((time+5)/10*6*pi)*10-cos((time+5)/10*2*pi)*30 }    //Z-Coordinates
#declare MyFuncR = function (time) {
sin((time+5)*pi)+cos((time+5)*5*pi)+sqrt(time) }     //Radius

#macro MyMacroP(time) //Pigment
 leopard color_map { [0.25  rgb 1][0.25
rgb<1-(time+5)/10,sin((time+5)/10*pi),(time+5)/10>] } scale 0.8
#end


#declare EvalStart = -5;
#declare EvalEnd = 5;
#declare Steps = 1000;
#declare Delta = 1/Steps*abs(EvalEnd-EvalStart);


union {
 #local a = 0;

 #while (a<Steps-1)
  #declare P1 =
<MyFuncX(EvalStart+a*Delta),MyFuncY(EvalStart+a*Delta),MyFuncZ(EvalStart+a*D
elta)>;
  #declare P2 =
<MyFuncX(EvalStart+(a+1)*Delta),MyFuncY(EvalStart+(a+1)*Delta),MyFuncZ(EvalS
tart+(a+1)*Delta)>;
  #declare Radius = MyFuncR(EvalStart+(a+0.5)*Delta);

  union {
   sphere { P1,Radius }
   sphere { P2,Radius }

   cylinder { P1,P2,Radius }

   pigment {  MyMacroP(EvalStart+(a+0.5)*Delta) }
   finish { phong 1 ambient 0.5 }
  }

  #local a = a + 1;
 #end

 translate
y*(-MyFuncY(EvalStart)+0.5*abs(MyFuncY(EvalStart)-MyFuncY(EvalEnd)))
 //translate y*80
}
==========================================


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.